package com.twu.biblioteca.library;

public class User {

    private String libraryNumber;
    private String name;
    private String password;
    private String email;
    private String phoneNumber;

    public User(String libraryNumber, String name, String password, String email, String phoneNumber) {
        this.libraryNumber = libraryNumber;
        this.name = name;
        this.password = password;
        this.email = email;
        this.phoneNumber = phoneNumber;
    }

    public String getUserInfo() {
        return name + "  " + email + "  " + phoneNumber;
    }

    public boolean isSameUser(String libraryNumber, String password) {
        return this.libraryNumber.equals(libraryNumber) && this.password.equals(password);
    }


    public boolean isLibNumberEquals(String libraryNumber) {
        return this.libraryNumber.equals(libraryNumber);
    }
}
